public class DJHController implements DJHControllerInterface
{	
	
	private DJHModelInterface model;
	private DJHViewInterface TextView;
    private DJHViewInterface GUIView;
	
	public DJHController(DJHModelInterface model)
	{
		this.model = model;
		TextView = new DJHViewText("Desperate Jealous Husbands", this, model);
		TextView.Initialize();
        GUIView = new DJHViewGUI("Desperate Jealous Husbands", this, model);
		GUIView.Initialize();	
	}
	
	public void Start(int sleepInterval, int size)
	{
		model.Init(sleepInterval, size);
	}
	
    public boolean IsRunning()
    {
        return model.IsRunning();
    }
    
	public void Pause()
	{
		model.Pause();
	}
	
	public void Stop()
	{
		model.Destroy();
	}
	
	public void SetSleepInterval(int sleepInterval)
	{
		model.SetSleepInterval(sleepInterval);
	}
}